import axios from "../axios";

export default{
    //获取所有角色
    getAllRoles(params,page,limit){
        console.log(params)
        return axios({
            url:`/admin/acl/role/${page}/${limit}`,
            method:'GET',
            params
        })
    },
    //新增角色
    addRole(data){
        return axios({
            url:"/admin/acl/role/save",
            method:'POST',
            data
        })
    },
    //获取单个角色
    getRole(params,id){
        return axios({
            url:`/admin/acl/role/get/${id}`,
            method:'GET',
            params
        })
    }
}